<?php
require('../../config.php');
global $smarty, $baseurl;

$actionType = $_POST['action'];

if ($actionType == "login") {
	$userName = $_POST['username'];
	$userpwd = $_POST['password'];
	$encrpytUserpwd = md5($userpwd);	
	$hardCodePassword = md5("pass");
	if ($userName == "admin" && $encrpytUserpwd == $hardCodePassword) {
		session_start();
		session_name('USERNAME') = $userName;
		session_name('UID') = "1";
		header("location: ".$baseurl."admin/aa.php");
	}
} else if ($actionType == "logout") {

}

?>